package com.jiangyao.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 答题日志
 * </p>
 *
 * @author lijing
 * @since 2020-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class UserAnswerLog extends Model<UserAnswerLog> {

    private static final long serialVersionUID=1L;

    /**
     * 自增
     */
    @TableId(value = "answer_id", type = IdType.AUTO)
    private Integer answerId;

    /**
     * 学期课程ID（class_subject的主键ID）
     */
    private Integer clsubId;

    /**
     * 成员ID
     */
    private Integer userId;

    /**
     * 章节ID
     */
    private Integer chapterId;

    /**
     * 课件ID
     */
    private Integer coursewareId;

    /**
     * 试题ID
     */
    private Integer questionId;

    /**
     * 总分
     */
    private Integer answerScore;

    /**
     * 开始答题时间
     */
    private Date startTime;

    /**
     * 结束答题时间
     */
    private Date endTime;

    /**
     * 1 课件 2 章节
     */
    private Integer type;

    /**
     * 课程ID
     */
    private Integer subjectId;

    /**
     * 章节课件ID
     */
    private Integer chcoId;

    @Override
    protected Serializable pkVal() {
        return this.answerId;
    }

}
